<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the Size class from the dart:ui library, for the Dart programming language.">
  <title>Size class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">spritewidget</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li class="self-crumb">Size class</li>
  </ol>
  <div class="self-name">Size</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5>dart:ui library</h5>
    <ol>
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#classes">Classes</a></li>
      <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
      <li><a href="dart-ui/Codec-class.html">Codec</a></li>
      <li><a href="dart-ui/Color-class.html">Color</a></li>
      <li><a href="dart-ui/ColorFilter-class.html">ColorFilter</a></li>
      <li><a href="dart-ui/EncodingFormat-class.html">EncodingFormat</a></li>
      <li><a href="dart-ui/FontWeight-class.html">FontWeight</a></li>
      <li><a href="dart-ui/FrameInfo-class.html">FrameInfo</a></li>
      <li><a href="dart-ui/Gradient-class.html">Gradient</a></li>
      <li><a href="dart-ui/Image-class.html">Image</a></li>
      <li><a href="dart-ui/ImageFilter-class.html">ImageFilter</a></li>
      <li><a href="dart-ui/ImageShader-class.html">ImageShader</a></li>
      <li><a href="dart-ui/Locale-class.html">Locale</a></li>
      <li><a href="dart-ui/MaskFilter-class.html">MaskFilter</a></li>
      <li><a href="dart-ui/Offset-class.html">Offset</a></li>
      <li><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></li>
      <li><a href="dart-ui/Paint-class.html">Paint</a></li>
      <li><a href="dart-ui/Paragraph-class.html">Paragraph</a></li>
      <li><a href="dart-ui/ParagraphBuilder-class.html">ParagraphBuilder</a></li>
      <li><a href="dart-ui/ParagraphConstraints-class.html">ParagraphConstraints</a></li>
      <li><a href="dart-ui/ParagraphStyle-class.html">ParagraphStyle</a></li>
      <li><a href="dart-ui/Path-class.html">Path</a></li>
      <li><a href="dart-ui/Picture-class.html">Picture</a></li>
      <li><a href="dart-ui/PictureRecorder-class.html">PictureRecorder</a></li>
      <li><a href="dart-ui/PointerData-class.html">PointerData</a></li>
      <li><a href="dart-ui/PointerDataPacket-class.html">PointerDataPacket</a></li>
      <li><a href="dart-ui/Radius-class.html">Radius</a></li>
      <li><a href="dart-ui/Rect-class.html">Rect</a></li>
      <li><a href="dart-ui/RRect-class.html">RRect</a></li>
      <li><a href="dart-ui/RSTransform-class.html">RSTransform</a></li>
      <li><a href="dart-ui/Scene-class.html">Scene</a></li>
      <li><a href="dart-ui/SceneBuilder-class.html">SceneBuilder</a></li>
      <li><a href="dart-ui/SceneHost-class.html">SceneHost</a></li>
      <li><a href="dart-ui/SemanticsAction-class.html">SemanticsAction</a></li>
      <li><a href="dart-ui/SemanticsFlag-class.html">SemanticsFlag</a></li>
      <li><a href="dart-ui/SemanticsUpdate-class.html">SemanticsUpdate</a></li>
      <li><a href="dart-ui/SemanticsUpdateBuilder-class.html">SemanticsUpdateBuilder</a></li>
      <li><a href="dart-ui/Shader-class.html">Shader</a></li>
      <li><a href="dart-ui/Size-class.html">Size</a></li>
      <li><a href="dart-ui/TextBox-class.html">TextBox</a></li>
      <li><a href="dart-ui/TextDecoration-class.html">TextDecoration</a></li>
      <li><a href="dart-ui/TextPosition-class.html">TextPosition</a></li>
      <li><a href="dart-ui/TextStyle-class.html">TextStyle</a></li>
      <li><a href="dart-ui/Vertices-class.html">Vertices</a></li>
      <li><a href="dart-ui/Window-class.html">Window</a></li>
      <li><a href="dart-ui/WindowPadding-class.html">WindowPadding</a></li>
    
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#properties">Properties</a></li>
      <li><a href="dart-ui/window.html">window</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#functions">Functions</a></li>
      <li><a href="dart-ui/decodeImageFromList.html">decodeImageFromList</a></li>
      <li><a href="dart-ui/hashList.html">hashList</a></li>
      <li><a href="dart-ui/hashValues.html">hashValues</a></li>
      <li><a href="dart-ui/instantiateImageCodec.html">instantiateImageCodec</a></li>
      <li><a href="dart-ui/lerpDouble.html">lerpDouble</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#enums">Enums</a></li>
      <li><a href="dart-ui/AppLifecycleState-class.html">AppLifecycleState</a></li>
      <li><a href="dart-ui/BlendMode-class.html">BlendMode</a></li>
      <li><a href="dart-ui/BlurStyle-class.html">BlurStyle</a></li>
      <li><a href="dart-ui/ClipOp-class.html">ClipOp</a></li>
      <li><a href="dart-ui/FilterQuality-class.html">FilterQuality</a></li>
      <li><a href="dart-ui/FontStyle-class.html">FontStyle</a></li>
      <li><a href="dart-ui/PaintingStyle-class.html">PaintingStyle</a></li>
      <li><a href="dart-ui/PathFillType-class.html">PathFillType</a></li>
      <li><a href="dart-ui/PointerChange-class.html">PointerChange</a></li>
      <li><a href="dart-ui/PointerDeviceKind-class.html">PointerDeviceKind</a></li>
      <li><a href="dart-ui/PointMode-class.html">PointMode</a></li>
      <li><a href="dart-ui/StrokeCap-class.html">StrokeCap</a></li>
      <li><a href="dart-ui/StrokeJoin-class.html">StrokeJoin</a></li>
      <li><a href="dart-ui/TextAffinity-class.html">TextAffinity</a></li>
      <li><a href="dart-ui/TextAlign-class.html">TextAlign</a></li>
      <li><a href="dart-ui/TextBaseline-class.html">TextBaseline</a></li>
      <li><a href="dart-ui/TextDecorationStyle-class.html">TextDecorationStyle</a></li>
      <li><a href="dart-ui/TextDirection-class.html">TextDirection</a></li>
      <li><a href="dart-ui/TileMode-class.html">TileMode</a></li>
      <li><a href="dart-ui/VertexMode-class.html">VertexMode</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#typedefs">Typedefs</a></li>
      <li><a href="dart-ui/FrameCallback.html">FrameCallback</a></li>
      <li><a href="dart-ui/ImageDecoderCallback.html">ImageDecoderCallback</a></li>
      <li><a href="dart-ui/PlatformMessageCallback.html">PlatformMessageCallback</a></li>
      <li><a href="dart-ui/PlatformMessageResponseCallback.html">PlatformMessageResponseCallback</a></li>
      <li><a href="dart-ui/PointerDataPacketCallback.html">PointerDataPacketCallback</a></li>
      <li><a href="dart-ui/SemanticsActionCallback.html">SemanticsActionCallback</a></li>
      <li><a href="dart-ui/VoidCallback.html">VoidCallback</a></li>
    
    </ol>
  </div>

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">
    <h1>Size class</h1>

    <section class="desc markdown">
      <p>Holds a 2D floating-point size.</p>
<p>You can think of this as an <a href="dart-ui/Offset-class.html">Offset</a> from the origin.</p>
    </section>
    
    <section>
      <dl class="dl-horizontal">
        <dt>Inheritance</dt>
        <dd><ul class="gt-separated dark clazz-relationships">
          <li><a href="dart-core/Object-class.html">Object</a></li>
          <li><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></li>
          <li>Size</li>
        </ul></dd>




      </dl>
    </section>

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="Size" class="callable">
          <span class="name"><a href="dart-ui/Size/Size.html">Size</a></span><span class="signature">(<span class="parameter" id="-param-width"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">width</span>, </span> <span class="parameter" id="-param-height"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">height</span></span>)</span>
        </dt>
        <dd>
          Creates a <a href="dart-ui/Size-class.html">Size</a> with the given <code>width</code> and <code>height</code>.
          <div class="constructor-modifier features">const</div>
        </dd>
        <dt id="Size.copy" class="callable">
          <span class="name"><a href="dart-ui/Size/Size.copy.html">Size.copy</a></span><span class="signature">(<span class="parameter" id="copy-param-source"><span class="type-annotation"><a href="dart-ui/Size-class.html">Size</a></span> <span class="parameter-name">source</span></span>)</span>
        </dt>
        <dd>
          Creates an instance of <a href="dart-ui/Size-class.html">Size</a> that has the same values as another.
        </dd>
        <dt id="Size.fromHeight" class="callable">
          <span class="name"><a href="dart-ui/Size/Size.fromHeight.html">Size.fromHeight</a></span><span class="signature">(<span class="parameter" id="fromHeight-param-height"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">height</span></span>)</span>
        </dt>
        <dd>
          Creates a <a href="dart-ui/Size-class.html">Size</a> with the given <code>height</code> and an infinite <a href="dart-ui/Size/width.html">width</a>.
          <div class="constructor-modifier features">const</div>
        </dd>
        <dt id="Size.fromRadius" class="callable">
          <span class="name"><a href="dart-ui/Size/Size.fromRadius.html">Size.fromRadius</a></span><span class="signature">(<span class="parameter" id="fromRadius-param-radius"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">radius</span></span>)</span>
        </dt>
        <dd>
          Creates a square <a href="dart-ui/Size-class.html">Size</a> whose <a href="dart-ui/Size/width.html">width</a> and <a href="dart-ui/Size/height.html">height</a> are twice the given
dimension. <a href="dart-ui/Size/Size.fromRadius.html">[...]</a>
          <div class="constructor-modifier features">const</div>
        </dd>
        <dt id="Size.fromWidth" class="callable">
          <span class="name"><a href="dart-ui/Size/Size.fromWidth.html">Size.fromWidth</a></span><span class="signature">(<span class="parameter" id="fromWidth-param-width"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">width</span></span>)</span>
        </dt>
        <dd>
          Creates a <a href="dart-ui/Size-class.html">Size</a> with the given <code>width</code> and an infinite <a href="dart-ui/Size/height.html">height</a>.
          <div class="constructor-modifier features">const</div>
        </dd>
        <dt id="Size.square" class="callable">
          <span class="name"><a href="dart-ui/Size/Size.square.html">Size.square</a></span><span class="signature">(<span class="parameter" id="square-param-dimension"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">dimension</span></span>)</span>
        </dt>
        <dd>
          Creates a square <a href="dart-ui/Size-class.html">Size</a> whose <a href="dart-ui/Size/width.html">width</a> and <a href="dart-ui/Size/height.html">height</a> are the given dimension. <a href="dart-ui/Size/Size.square.html">[...]</a>
          <div class="constructor-modifier features">const</div>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="flipped" class="property">
          <span class="name"><a href="dart-ui/Size/flipped.html">flipped</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
        </dt>
        <dd>
          A <a href="dart-ui/Size-class.html">Size</a> with the <a href="dart-ui/Size/width.html">width</a> and <a href="dart-ui/Size/height.html">height</a> swapped.
          <div class="features">read-only</div>
</dd>
        <dt id="hashCode" class="property">
          <span class="name"><a href="dart-ui/Size/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="dart-core/int-class.html">int</a></span>
        </dt>
        <dd>
          
          <div class="features">read-only</div>
</dd>
        <dt id="height" class="property">
          <span class="name"><a href="dart-ui/Size/height.html">height</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>
        </dt>
        <dd>
          The vertical extent of this size.
          <div class="features">read-only</div>
</dd>
        <dt id="isEmpty" class="property">
          <span class="name"><a href="dart-ui/Size/isEmpty.html">isEmpty</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
        </dt>
        <dd>
          Whether this size encloses a non-zero area. <a href="dart-ui/Size/isEmpty.html">[...]</a>
          <div class="features">read-only</div>
</dd>
        <dt id="longestSide" class="property">
          <span class="name"><a href="dart-ui/Size/longestSide.html">longestSide</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>
        </dt>
        <dd>
          The greater of the magnitudes of the <a href="dart-ui/Size/width.html">width</a> and the <a href="dart-ui/Size/height.html">height</a>.
          <div class="features">read-only</div>
</dd>
        <dt id="shortestSide" class="property">
          <span class="name"><a href="dart-ui/Size/shortestSide.html">shortestSide</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>
        </dt>
        <dd>
          The lesser of the magnitudes of the <a href="dart-ui/Size/width.html">width</a> and the <a href="dart-ui/Size/height.html">height</a>.
          <div class="features">read-only</div>
</dd>
        <dt id="width" class="property">
          <span class="name"><a href="dart-ui/Size/width.html">width</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>
        </dt>
        <dd>
          The horizontal extent of this size.
          <div class="features">read-only</div>
</dd>
        <dt id="isFinite" class="property inherited">
          <span class="name"><a href="dart-ui/OffsetBase/isFinite.html">isFinite</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
        </dt>
        <dd class="inherited">
          Whether both components are finite (neither infinite nor NaN). <a href="dart-ui/OffsetBase/isFinite.html">[...]</a>
          <div class="features">read-only, inherited</div>
</dd>
        <dt id="isInfinite" class="property inherited">
          <span class="name"><a href="dart-ui/OffsetBase/isInfinite.html">isInfinite</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
        </dt>
        <dd class="inherited">
          Returns true if either component is <a href="dart-core/double/infinity-constant.html">double.infinity</a>, and false if both
are finite (or negative infinity, or NaN). <a href="dart-ui/OffsetBase/isInfinite.html">[...]</a>
          <div class="features">read-only, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="dart-core/Type-class.html">Type</a></span>
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
          <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="bottomCenter" class="callable">
          <span class="name"><a href="dart-ui/Size/bottomCenter.html">bottomCenter</a></span><span class="signature">(<wbr><span class="parameter" id="bottomCenter-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the center of the bottom edge of the rectangle described by
the given offset (which is interpreted as the top-left corner) and this
size. <a href="dart-ui/Size/bottomCenter.html">[...]</a>
          
</dd>
        <dt id="bottomLeft" class="callable">
          <span class="name"><a href="dart-ui/Size/bottomLeft.html">bottomLeft</a></span><span class="signature">(<wbr><span class="parameter" id="bottomLeft-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the intersection of the bottom and left edges of the
rectangle described by the given offset (which is interpreted as the
top-left corner) and this size. <a href="dart-ui/Size/bottomLeft.html">[...]</a>
          
</dd>
        <dt id="bottomRight" class="callable">
          <span class="name"><a href="dart-ui/Size/bottomRight.html">bottomRight</a></span><span class="signature">(<wbr><span class="parameter" id="bottomRight-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the intersection of the bottom and right edges of the
rectangle described by the given offset (which is interpreted as the
top-left corner) and this size. <a href="dart-ui/Size/bottomRight.html">[...]</a>
          
</dd>
        <dt id="center" class="callable">
          <span class="name"><a href="dart-ui/Size/center.html">center</a></span><span class="signature">(<wbr><span class="parameter" id="center-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the point halfway between the left and right and the top and
bottom edges of the rectangle described by the given offset (which is
interpreted as the top-left corner) and this size. <a href="dart-ui/Size/center.html">[...]</a>
          
</dd>
        <dt id="centerLeft" class="callable">
          <span class="name"><a href="dart-ui/Size/centerLeft.html">centerLeft</a></span><span class="signature">(<wbr><span class="parameter" id="centerLeft-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the center of the left edge of the rectangle described by the
given offset (which is interpreted as the top-left corner) and this size. <a href="dart-ui/Size/centerLeft.html">[...]</a>
          
</dd>
        <dt id="centerRight" class="callable">
          <span class="name"><a href="dart-ui/Size/centerRight.html">centerRight</a></span><span class="signature">(<wbr><span class="parameter" id="centerRight-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the center of the right edge of the rectangle described by the
given offset (which is interpreted as the top-left corner) and this size. <a href="dart-ui/Size/centerRight.html">[...]</a>
          
</dd>
        <dt id="contains" class="callable">
          <span class="name"><a href="dart-ui/Size/contains.html">contains</a></span><span class="signature">(<wbr><span class="parameter" id="contains-param-offset"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">offset</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd>
          Whether the point specified by the given offset (which is assumed to be
relative to the top left of the size) lies between the left and right and
the top and bottom edges of a rectangle of this size. <a href="dart-ui/Size/contains.html">[...]</a>
          
</dd>
        <dt id="topCenter" class="callable">
          <span class="name"><a href="dart-ui/Size/topCenter.html">topCenter</a></span><span class="signature">(<wbr><span class="parameter" id="topCenter-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the center of the top edge of the rectangle described by the
given offset (which is interpreted as the top-left corner) and this size. <a href="dart-ui/Size/topCenter.html">[...]</a>
          
</dd>
        <dt id="topLeft" class="callable">
          <span class="name"><a href="dart-ui/Size/topLeft.html">topLeft</a></span><span class="signature">(<wbr><span class="parameter" id="topLeft-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the intersection of the top and left edges of the rectangle
described by the given <a href="dart-ui/Offset-class.html">Offset</a> (which is interpreted as the top-left corner)
and this <a href="dart-ui/Size-class.html">Size</a>. <a href="dart-ui/Size/topLeft.html">[...]</a>
          
</dd>
        <dt id="topRight" class="callable">
          <span class="name"><a href="dart-ui/Size/topRight.html">topRight</a></span><span class="signature">(<wbr><span class="parameter" id="topRight-param-origin"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">origin</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          The offset to the intersection of the top and right edges of the rectangle
described by the given offset (which is interpreted as the top-left corner)
and this size. <a href="dart-ui/Size/topRight.html">[...]</a>
          
</dd>
        <dt id="toString" class="callable">
          <span class="name"><a href="dart-ui/Size/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-core/String-class.html">String</a></span>
          </span>
        </dt>
        <dd>
          
          
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
        </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="dart-core/Object/noSuchMethod.html">[...]</a>
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator %" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_modulo.html">operator %</a></span><span class="signature">(<wbr><span class="parameter" id="%-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
          </span>
        </dt>
        <dd>
          Modulo (remainder) operator. <a href="dart-ui/Size/operator_modulo.html">[...]</a>
          
</dd>
        <dt id="operator *" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_multiply.html">operator *</a></span><span class="signature">(<wbr><span class="parameter" id="*-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
          </span>
        </dt>
        <dd>
          Multiplication operator. <a href="dart-ui/Size/operator_multiply.html">[...]</a>
          
</dd>
        <dt id="operator +" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_plus.html">operator +</a></span><span class="signature">(<wbr><span class="parameter" id="+-param-other"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
          </span>
        </dt>
        <dd>
          Binary addition operator for adding an <a href="dart-ui/Offset-class.html">Offset</a> to a <a href="dart-ui/Size-class.html">Size</a>. <a href="dart-ui/Size/operator_plus.html">[...]</a>
          
</dd>
        <dt id="operator -" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_minus.html">operator -</a></span><span class="signature">(<wbr><span class="parameter" id="--param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span>
          </span>
        </dt>
        <dd>
          Binary subtraction operator for <a href="dart-ui/Size-class.html">Size</a>. <a href="dart-ui/Size/operator_minus.html">[...]</a>
          
</dd>
        <dt id="operator /" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_divide.html">operator /</a></span><span class="signature">(<wbr><span class="parameter" id="/-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
          </span>
        </dt>
        <dd>
          Division operator. <a href="dart-ui/Size/operator_divide.html">[...]</a>
          
</dd>
        <dt id="operator ==" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd>
          Compares two Sizes for equality.
          
</dd>
        <dt id="operator ~/" class="callable">
          <span class="name"><a href="dart-ui/Size/operator_truncate_divide.html">operator ~/</a></span><span class="signature">(<wbr><span class="parameter" id="~/-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
          </span>
        </dt>
        <dd>
          Integer (truncating) division operator. <a href="dart-ui/Size/operator_truncate_divide.html">[...]</a>
          
</dd>
        <dt id="operator &lt;" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_less.html">operator <</a></span><span class="signature">(<wbr><span class="parameter" id="<-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd class="inherited">
          Less-than operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to another <a href="dart-ui/Offset-class.html">Offset</a> or
<a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and vertical values of the
left-hand-side operand are smaller than the horizontal and vertical values
of the right-hand-side operand respectively. Returns false otherwise. <a href="dart-ui/OffsetBase/operator_less.html">[...]</a>
          <div class="features">inherited</div>
</dd>
        <dt id="operator &lt;=" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_less_equal.html">operator <=</a></span><span class="signature">(<wbr><span class="parameter" id="<=-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd class="inherited">
          Less-than-or-equal-to operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to another
<a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and vertical
values of the left-hand-side operand are smaller than or equal to the
horizontal and vertical values of the right-hand-side operand
respectively. Returns false otherwise. <a href="dart-ui/OffsetBase/operator_less_equal.html">[...]</a>
          <div class="features">inherited</div>
</dd>
        <dt id="operator &gt;" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_greater.html">operator ></a></span><span class="signature">(<wbr><span class="parameter" id=">-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd class="inherited">
          Greater-than operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to another <a href="dart-ui/Offset-class.html">Offset</a>
or <a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and vertical values of
the left-hand-side operand are bigger than the horizontal and vertical
values of the right-hand-side operand respectively. Returns false
otherwise. <a href="dart-ui/OffsetBase/operator_greater.html">[...]</a>
          <div class="features">inherited</div>
</dd>
        <dt id="operator &gt;=" class="callable inherited">
          <span class="name"><a href="dart-ui/OffsetBase/operator_greater_equal.html">operator >=</a></span><span class="signature">(<wbr><span class="parameter" id=">=-param-other"><span class="type-annotation"><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd class="inherited">
          Greater-than-or-equal-to operator. Compares an <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a> to
another <a href="dart-ui/Offset-class.html">Offset</a> or <a href="dart-ui/Size-class.html">Size</a>, and returns true if both the horizontal and
vertical values of the left-hand-side operand are bigger than or equal to
the horizontal and vertical values of the right-hand-side operand
respectively. Returns false otherwise. <a href="dart-ui/OffsetBase/operator_greater_equal.html">[...]</a>
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>


    <section class="summary offset-anchor" id="static-methods">
      <h2>Static Methods</h2>
      <dl class="callables">
        <dt id="lerp" class="callable">
          <span class="name"><a href="dart-ui/Size/lerp.html">lerp</a></span><span class="signature">(<wbr><span class="parameter" id="lerp-param-a"><span class="type-annotation"><a href="dart-ui/Size-class.html">Size</a></span> <span class="parameter-name">a</span>, </span> <span class="parameter" id="lerp-param-b"><span class="type-annotation"><a href="dart-ui/Size-class.html">Size</a></span> <span class="parameter-name">b</span>, </span> <span class="parameter" id="lerp-param-t"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">t</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>
          </span>
        </dt>
        <dd>
          Linearly interpolate between two sizes <a href="dart-ui/Size/lerp.html">[...]</a>
          
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="constants">
      <h2>Constants</h2>

      <dl class="properties">
        <dt id="infinite" class="constant">
          <span class="name "><a href="dart-ui/Size/infinite-constant.html">infinite</a></span>
          <span class="signature">&#8594; const <a href="dart-ui/Size-class.html">Size</a></span>
        </dt>
        <dd>
          A size whose <code>width</code> and <code>height</code> are infinite. <a href="dart-ui/Size/infinite-constant.html">[...]</a>
          
  <div>
            <span class="signature"><code>const <a href="dart-ui/Size/Size.html">Size</a>(double.infinity, double.infinity)</code></span>
          </div>
        </dd>
        <dt id="zero" class="constant">
          <span class="name "><a href="dart-ui/Size/zero-constant.html">zero</a></span>
          <span class="signature">&#8594; const <a href="dart-ui/Size-class.html">Size</a></span>
        </dt>
        <dd>
          An empty size, one with a zero width and a zero height.
          
  <div>
            <span class="signature"><code>const <a href="dart-ui/Size/Size.html">Size</a>(0.0, 0.0)</code></span>
          </div>
        </dd>
      </dl>
    </section>

  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="dart-ui/Size-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/Size/Size.html">Size</a></li>
      <li><a href="dart-ui/Size/Size.copy.html">copy</a></li>
      <li><a href="dart-ui/Size/Size.fromHeight.html">fromHeight</a></li>
      <li><a href="dart-ui/Size/Size.fromRadius.html">fromRadius</a></li>
      <li><a href="dart-ui/Size/Size.fromWidth.html">fromWidth</a></li>
      <li><a href="dart-ui/Size/Size.square.html">square</a></li>
    
      <li class="section-title">
        <a href="dart-ui/Size-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-ui/Size/flipped.html">flipped</a></li>
      <li><a href="dart-ui/Size/hashCode.html">hashCode</a></li>
      <li><a href="dart-ui/Size/height.html">height</a></li>
      <li><a href="dart-ui/Size/isEmpty.html">isEmpty</a></li>
      <li><a href="dart-ui/Size/longestSide.html">longestSide</a></li>
      <li><a href="dart-ui/Size/shortestSide.html">shortestSide</a></li>
      <li><a href="dart-ui/Size/width.html">width</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/isFinite.html">isFinite</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/isInfinite.html">isInfinite</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-ui/Size-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-ui/Size/bottomCenter.html">bottomCenter</a></li>
      <li><a href="dart-ui/Size/bottomLeft.html">bottomLeft</a></li>
      <li><a href="dart-ui/Size/bottomRight.html">bottomRight</a></li>
      <li><a href="dart-ui/Size/center.html">center</a></li>
      <li><a href="dart-ui/Size/centerLeft.html">centerLeft</a></li>
      <li><a href="dart-ui/Size/centerRight.html">centerRight</a></li>
      <li><a href="dart-ui/Size/contains.html">contains</a></li>
      <li><a href="dart-ui/Size/topCenter.html">topCenter</a></li>
      <li><a href="dart-ui/Size/topLeft.html">topLeft</a></li>
      <li><a href="dart-ui/Size/topRight.html">topRight</a></li>
      <li><a href="dart-ui/Size/toString.html">toString</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    
      <li class="section-title"><a href="dart-ui/Size-class.html#operators">Operators</a></li>
      <li><a href="dart-ui/Size/operator_modulo.html">operator %</a></li>
      <li><a href="dart-ui/Size/operator_multiply.html">operator *</a></li>
      <li><a href="dart-ui/Size/operator_plus.html">operator +</a></li>
      <li><a href="dart-ui/Size/operator_minus.html">operator -</a></li>
      <li><a href="dart-ui/Size/operator_divide.html">operator /</a></li>
      <li><a href="dart-ui/Size/operator_equals.html">operator ==</a></li>
      <li><a href="dart-ui/Size/operator_truncate_divide.html">operator ~/</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_less.html">operator <</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_less_equal.html">operator <=</a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_greater.html">operator ></a></li>
      <li class="inherited"><a href="dart-ui/OffsetBase/operator_greater_equal.html">operator >=</a></li>
    
    
      <li class="section-title"><a href="dart-ui/Size-class.html#static-methods">Static methods</a></li>
      <li><a href="dart-ui/Size/lerp.html">lerp</a></li>
    
      <li class="section-title"><a href="dart-ui/Size-class.html#constants">Constants</a></li>
      <li><a href="dart-ui/Size/infinite-constant.html">infinite</a></li>
      <li><a href="dart-ui/Size/zero-constant.html">zero</a></li>
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    spritewidget 0.9.16
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
